package com.gyy.faq.pojo.dto;


import com.gyy.faq.validator.group.FaqGroup;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by Lowi on 2018/6/25 0025.
 */
public class FaqProblemDTO {
	@NotNull(groups = FaqGroup.SelectFaqProblemInfo.class, message = "id不能为空")
	@NotNull(groups = FaqGroup.DeleteProblem.class, message = "id不能为空")
	@NotNull(groups = FaqGroup.EditProblem.class, message = "id不能为空")
	private Integer id;
	@NotNull(groups = FaqGroup.InsertProblem.class, message = "标题不能为空")
	private String title;
	@NotNull(groups = FaqGroup.InsertProblem.class, message = "内容不能为空")
	private String comment;
	@NotNull(groups = FaqGroup.EditProblemClassify.class, message = "分类不能为空")
	@NotNull(groups = FaqGroup.InsertProblem.class, message = "分类不能为空")
	private Integer classifyId;

	private Integer classifyParentId;

	private Date createTime;

	private Integer total;

	private Integer page = 1;

	private Integer count = 10;

	private Integer offset;

	private String sort;

	private String order;
	private Integer highLevelId;
	@NotNull(groups = FaqGroup.EditProblem.class, message = "修改备注不能为空")
	private String msg;
	@NotNull(groups = FaqGroup.EditProblemClassify.class, message = "ids不能为空")
	private List<Integer> ids;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Integer getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(Integer classifyId) {
		this.classifyId = classifyId;
	}

	public Integer getClassifyParentId() {
		return classifyParentId;
	}

	public void setClassifyParentId(Integer classifyParentId) {
		this.classifyParentId = classifyParentId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		this.offset = offset;
	}

	public Integer getHighLevelId() {
		return highLevelId;
	}

	public void setHighLevelId(Integer highLevelId) {
		this.highLevelId = highLevelId;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<Integer> getIds() {
		return ids;
	}

	public void setIds(List<Integer> ids) {
		this.ids = ids;
	}
}
